package com.fwmagic.akka.rpc

//Worker发送给Master的注册信息（case class默认实现了序列化接口）
case class RegisterWorker(wordId:String,memory:Int,cores:Int)

//Master发送给Worker的注册成功信息（case object默认实现了序列化接口）
case object RegistedWorker

//Worker向自己报活消息
case object SendHeartBeat

//Worker向Master报活消息,指定wordId
case class HeartBeat(wordId:String)

//Master定时检测超时的Worker(一定时间内不再发送心跳报活的worker)
case object CheckTimeOutWorker